import logo from './logo.svg';
import './App.css';
import ButtonGroup from "./components/ButtonGroup";

function App() {

  const printButtonLabel = (event) => {
    console.log(event.target.name);
    //do some stuff here
    alert(event.target.name);
  };

  return (
    <div className="App">
         <ButtonGroup
        buttons={["One", "Two", "Three","Four"]}
        doSomethingAfterClick={printButtonLabel}
      />
      </div>
  );
}

export default App;
